#ifndef _MBSASCII_H
#define _MBSASCII_H

/* ----------------------- Defines ------------------------------------------*/

/* ----------------------- Type definitions ---------------------------------*/

/* ----------------------- Function prototypes ------------------------------*/

/*! \brief Configure a MODBUS slave ASCII instance.
 * \internal
 *
 * \param pxIntHdl An internal handle.
 * \param ubPort The port. This value is passed through to the porting layer.
 * \param ulBaudRate Baudrate.
 * \param eParity Parity.
 * \param ucStopBits Number of stop bits.
 *
 * \return eMBErrorCode::MB_ENOERR if a new instance has been created. In
 *   this case the members pxFrameHdl, pFrameSendFN, pFrameReciveFN,
 *   pFrameCloseFN and pFrameManagementFN in the handle are updated to point
 *   to this ASCII instance. In case of an invalid handle or baudrate it returns
 *   eMBErrorCode::MB_EINVAL. In case of a porting layer error it returns
 *   eMBErrorCode::MB_EPORTERR.
 */
eMBErrorCode eMBSSerialASCIIInit(xMBSInternalHandle *pxMBSIntHdl, pusSendDatas pSendDatasFn, pusReciveDatas pReciveDatasFN);
#endif
